/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Admin
 * Date: 2022-05-08
 * Time: 17:13
 */

public class TestDemo {
    public static void main(String[] args) {
        Main list = new Main();
        list.addFirst(25);
        list.addFirst(22);
        list.addFirst(20);
        list.addFirst(18);
        list.addFirst(15);
        list.Display();
        Main list2 = new Main();
        list2.addFirst(25);
        list2.addFirst(22);
        list2.addFirst(20);
        list2.addFirst(18);
        list2.addFirst(15);
        list2.Display();
        System.out.println("====================");
        Main.NodeList list3 = list.mergeTwoLists(list.head,list2.head);
        list.Display(list3);
    }
}
